/// Author: QP
/// Version: 1.0
/// Date:2021/07
/// 文档记录对象或健康保健对象 (患者信息)
Class HCC.SQL.Document.Header.RecordTarget Extends (%SerialObject, %XML.Adaptor, HCC.SQL.Base) [ DependsOn = (HCC.SQL.Base, HCC.SQL.Document.Header.RecordTarget.ProviderOrganization) ]
{

/// 健康档案标识号。用于《病历概要》
Property healthRecordId As WS.DE.DE010000900 [ SqlFieldName = hrId ];

/// 健康卡号标识。以下文档需要：《住院病案首页》、《病历概要》
Property healthCardId As WS.DE.DE010002100 [ Required, SqlFieldName = healthCardId ];

/// 病案号标识
Property MRN As WS.DE.DE010000400 [ Required, SqlFieldName = MRN ];

/// 住院号标识。以下文档需要：《住院病案首页》
Property inpatientNum As WS.DE.DE010001400 [ Required, SqlFieldName = ip_num ];

/// 门（急）诊号标识 
Property outpatientNum As WS.DE.DE010001000 [ SqlFieldName = op_num ];

/// 知情同意书编号标识
Property consentFormNum As WS.DE.DE090011800 [ SqlFieldName = con_num ];

/// 患者地址
Property addr As HCC.SQL.Addr;

/// 患者电话号码
Property telcom As WS.DE.DE020101000 [ SqlFieldName = telcom ];

/// 患者类别代码
Property patientType As WS.DE.DE020106000 [ SqlFieldName = pat_Type ];

/// 患者
Property patient As HCC.SQL.Document.Header.RecordTarget.Patient [ SqlFieldName = pat ];

/// 检验报告单号标识
Property labReportNum As WS.DE.DE010001800 [ SqlFieldName = labrep_num ];

/// 电子申请单编号
Property labOrderNum As WS.DE.DE010000800 [ SqlFieldName = labord_num ];

/// 检验标本编号标识
Property specimenNum As WS.DE.DE010000300 [ SqlFieldName = spec_num ];

/// 处方编号
Property prescriptionNum As WS.DE.DE010002000 [ SqlFieldName = pres_num ];

Property providerOrganization As HCC.SQL.Document.Header.RecordTarget.ProviderOrganization [ SqlFieldName = prov_org ];


}
